package com.twu.biblioteca.menus;

import com.twu.biblioteca.OutputController;

import java.io.IOException;

public class QuitMenu implements Menu {

    private final OutputController outputController;

    public QuitMenu(OutputController outputController) {
        this.outputController = outputController;
    }

    public void displayMenu() {
        outputController.drawMessage("Good bye.");

    }

    public void runCommand() {
        System.exit(0);
    }

    public void getInput() throws IOException {

    }

    public int getNextMenu() {
        return 0;
    }

    @Override
    public boolean mustBeLoggedIn() {
        return false;
    }


}
